package com.leyou.trade.repository;


import com.leyou.trade.entity.CartItem;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author BaiZY on 2020/9/7.
 * @version 1.0
 */
public interface CartRepository extends MongoRepository<CartItem, String> {
    List<CartItem> findByUserId(Long userId);
}
